package com.css.bjdt_report.explain.entity;

import org.nutz.dao.entity.annotation.Column;
import org.nutz.dao.entity.annotation.Name;
import org.nutz.dao.entity.annotation.Table;

import lombok.Data;

//报表说明表
@Data
@Table("RPT_TEMPLATE_EXPLAIN")
public class RptTemplateExplain {
	@Name
	@Column("ID")
	private String id;

	@Column("TEMPLATE_EXPLAIN_NAME")
	private String templateExplainName;

	@Column("TEMPLATE_ID")
	private String templateId;

	@Column("EXPLAIN_TYPE")
	private String explainType;

	@Column("ANNUAL_ID")
	private String annualId;

	@Column("ORDER_ID")
	private int orderId;

	public enum explainType {
		//条目
		entry("1"),
		//列计算
		number("2"),
		//单元格计算
		textStr("3");

		private String key;

		explainType(String key) {
			this.key = key;
		}

		public String getKey() {
			return key;
		}
	}
}
